import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import audio from "./util/audio";

// 将音频对象挂载在全局上
Vue.prototype.$audio = audio;
Vue.prototype.$bus = new Vue();

// import { Button, Icon } from "vant";
// Vue.use(Button).use(Icon);

// 一次性导入所有 vant 组件
// 注意：如需全部引入，则不需要 babel.config.js 内的按需引入配置
// 记得，修改完 babel.config.js 后记得重启服务(npm run serve)
import Vant from "vant";
import "vant/lib/index.css";
import "./assets/myVantStyle.css";
Vue.use(Vant);
import { Lazyload } from "vant";
Vue.use(Lazyload);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
